﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Archives.Models
{
    public class WorkflowModel
    {
        /// <summary>
        /// 流程Id
        /// </summary>
        public string MessageId { get; set; }
        /// <summary>
        /// 工作流Id
        /// </summary>
        public string WorkFlowId { get; set; }
        /// <summary>
        /// 公文标题
        /// </summary>
        public string DocumentTitle { get; set; }
        /// <summary>
        /// 文号
        /// </summary>
        public string DocumentNumber { get; set; }
        /// <summary>
        /// 收/发文日期
        /// </summary>
        public DateTime? ClosedOrHairTime { get; set; }
        /// <summary>
        /// 流程类型
        /// </summary>
        public string MessageTitle { get; set; }
        /// <summary>
        /// 序列名称
        /// </summary>
        public string SequenceName { get; set; }
        /// <summary>
        /// 序列编号
        /// </summary>
        public string SequenceNumber { get; set; }
        /// <summary>
        /// 发起人Id
        /// </summary>
        public string MessageIssuedBy { get; set; }
        /// <summary>
        /// 发起人名称
        /// </summary>
        public string MessageIssuedName { get; set; }

        /// <summary>
        /// 发起人部门Id
        /// </summary>
        public string MessageIssuedDept { get; set; }
        /// <summary>
        /// 发起人部门名称
        /// </summary>
        public string MessageIssuedDeptName { get; set; }
        /// <summary>
        /// 流程状态  流程状态：0：草稿 1：运行中 2：已完成 3：终止信息
        /// </summary>
        public int? MessageStatus { get; set; }
        /// <summary>
        /// 流程状态名称
        /// </summary>
        public string MessageStatusName { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public DateTime? MessageCreateTime { get; set; }
    }

    public class WorkflowQueryModel
    {
        /// <summary>
        /// 结果集合
        /// </summary>
        public IEnumerable<WorkflowModel> Data { get; set; }
        /// <summary>
        /// 数据总数信息
        /// </summary>
        public TotalInfo TotalInfo { get; set; }
    }
}